<?php
namespace  Admin\Controller;
use Think\Controller;

class NavtopController extends Controller {
    public function index(){
        $navtop = D('navtop');
        $n = $navtop->where('tid = 0')->order('sort ASC')->select();
        $ns = $navtop->where('tid != 0')->order('sort ASC')->select();
        $this->assign('n',$n);
        $this->assign('ns',$ns);
        $this->display();
    }
    
}